/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package POJO;

import java.awt.Image;
import java.util.Date;

/**
 *
 * @author CUCAINHO
 */


public class HocSinh {

	
	/**
	 * @param args
	 */

	
	private int MaHS;
	private String TenHS;
	private String GhiChu;
        private Date NgaySinh;
        private Image HinhAnh ;        
	private float DiemTB;
	
        public Date GetNgaySinh(){
            return this.NgaySinh;
        }
        public void SetNgaySinh(Date ns){
            this.NgaySinh = ns;
        }
        public void SetHinhAnh(Image ha){
            this.HinhAnh = ha;
        }
        public Image GetHinhAnh(){
            return this.HinhAnh;
        }
	public int GetMaHS()
	{
		return this.MaHS;
	}
	
	public void SetMaHS(int ma)
	{
            this.MaHS = ma;
	}
	
	public float GetDiem()
	{
		return this.DiemTB;
	}
	public void SetDiem(float diem)
	{
		this.DiemTB = diem;
	}
	public String GetHoTen()
	{
		return this.TenHS;
	}
	public void SetHoTen(String hoTen)
	{
		this.TenHS = hoTen;
	}
	
	
	public String GetghiChu()
	{
		return this.GhiChu;
	}
	
	public void SetghiChu(String ghiChu)
	{
		this.GhiChu = ghiChu;
	}
	
	// cac ham khoi tao
	
	public HocSinh()
	{
		this.MaHS = 0;
		this.TenHS = "no name";
		this.GhiChu = "none";
		this.DiemTB = 0;
               
                
                
	}
	public HocSinh(HocSinh hs)
	{
		this.MaHS = hs.MaHS;
		this.TenHS = hs.TenHS;
		this.DiemTB = hs.DiemTB;
		this.GhiChu = hs.GhiChu;
                this.NgaySinh = hs.NgaySinh;
                this.HinhAnh = hs.HinhAnh;
	}
        
	public HocSinh(int maSV , String hoTen,Date NgaySinh,Image HinhAnh , float diem,String ghiChu )
	{
		this.MaHS = maSV;
                this.NgaySinh = NgaySinh;
		this.TenHS = hoTen;
		this.GhiChu = ghiChu;
		this.DiemTB = diem;
                this.HinhAnh = HinhAnh;
		
	}
}


